#ifndef __TargetBoard_H__
#define __TargetBoard_H__

#include "cocos2d.h"
USING_NS_CC;
#include "Configs.h"

class CTargetBoard :public Node
{
public:
	CTargetBoard();
	virtual ~CTargetBoard();

	virtual bool init();
	void initWithMap();

	Label* findTarget(const CItemData* pData);
	void addMapItem(CItemData* pData, int nCount);
	void eraseItemCount(CItemData* pData);
	bool isCompleted();

	CREATE_FUNC(CTargetBoard);
private:
	map<CItemData*, int> m_mapTarget;
	Map<Sprite*, Label*> m_MapData;
};

#endif